<template>
	<view class="rent_detail">
		<swiperVue :data="store.banner" />
		<view class="info_detail">
			<view class="info_price">
				<text style="color: #f46363">￥4500/月</text>
				<text>整租 三室一厅一厨一卫</text>
			</view>
			<view class="info_floor">
				<view class="item">
					<text class="desc">朝向</text>
					<text>北</text>
				</view>
				<view class="item">
					<text class="desc">面积</text>
					<text>101㎡</text>
				</view>
				<view class="item">
					<text class="desc">楼层</text>
					<text>13层</text>
				</view>
				<view class="item">
					<text class="desc">入住时间</text>
					<text>10月22号</text>
				</view>
			</view>
			<view class="introduce">
				<view class="top">房屋介绍</view>
				<view class="introduce_detail">
					<view class="introduce_item" v-for="(item, index) in 12" :key="index">
						<image src="../../static/icons/对号.png" mode=""></image>
						<text>冰箱</text>
					</view>
				</view>
				<view class="introduce_desc">
					<text>房屋位于12栋，从小区北门进入左转即是。</text>
					<text>自家房屋，全部精装修，拎包入住。</text>
					<text>一年起租，长租可优惠。有意向可以联系我，随时看房。</text>
				</view>
			</view>
			<view class="concat">
				<view class="top">
					房东联系方式
				</view>
				<view class="phone">
					<text>手机号码：19269167898</text>
					<text>微信：19269167898</text>
				</view>
			</view>
		</view>
		<view class="collect">
			<view class="collect_left">
				<view class="success">
					<image src="../../static/icons/收藏.png" mode=""></image>
					<text>收藏</text>
				</view>
			</view>
			<view class="collect_right">
				<button open-type="contact">打电话</button>
			</view>
		</view>
	</view>
</template>

<script setup>
import { onMounted } from 'vue';
import swiperVue from '@/components/swiper.vue';
import { useHomeStore } from '@/stores/homeStore.js';
const store = useHomeStore();
onMounted(() => {
	store.getBannerData();
});
const telphone=()=>{
	uni.makePhoneCall({
		phoneNumber:"19269167898"
	})
}
</script>

<style lang="scss">
.rent_detail {
	width: 100%;
	height: 100%;
	background-color: #fff;
	box-sizing: border-box;
	padding-bottom: 160rpx;
	overflow: auto;
	.info_detail {
		box-sizing: border-box;
		padding: 0 30rpx;
		.info_price {
			height: 180rpx;
			display: flex;
			flex-direction: column;
			justify-content: space-around;
			border-bottom: 2rpx solid #f2f2f2;
		}
		.info_floor {
			height: 180rpx;
			border-bottom: 2rpx solid #f2f2f2;
			display: flex;
			align-items: center;
			.item {
				width: 25%;
				height: 120rpx;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: space-around;
				.desc {
					color: #aaaaaa;
					font-size: 26rpx;
				}
			}
		}
		.introduce {
			border-bottom: 2rpx solid #f2f2f2;
			.top {
				height: 100rpx;
				display: flex;
				align-items: center;
			}
			.introduce_detail {
				display: flex;
				flex-wrap: wrap;
				font-size: 26rpx;
				.introduce_item {
					width: 33%;
					height: 60rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					image {
						width: 40rpx;
						height: 40rpx;
						margin-right: 10rpx;
					}
				}
			}
			.introduce_desc {
				height: 200rpx;
				display: flex;
				flex-direction: column;
				justify-content: space-around;
				font-size: 26rpx;
			}
		}
		.concat{
			.top {
				height: 100rpx;
				display: flex;
				align-items: center;
			}
			.phone{
				height: 150rpx;
				display: flex;
				flex-direction: column;
				justify-content: space-around;
				font-size: 26rpx;
			}
		}
	}
	.collect{
		height: 160rpx;
		display: flex;
		align-items: center;
		position: fixed;
		left: 0;
		bottom: 0;
		border-top: 2rpx solid #f2f2f2;
		background-color: #fff;
		.collect_left{
			width: 160rpx;
			height: 100%;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			.success{
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: space-around;
				color: #aaaaaa;
				image{
					width: 50rpx;
					height: 50rpx;
				}
			}
		}
		.collect_right{
			width: calc(100% - 160rpx);
			height: 100%;
			display: flex;
			align-items: center;
			justify-content: center;
			button{
				width: 540rpx;
				height: 80rpx;
				border-radius: 10rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				border: none;
				background-color: #006eff;
				color: #ffffff;
			}
		}
	}
}
</style>
